package com.lhj.springboot3.boot313security;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Security场景的自动配置类： 
 * SecurityAutoConfiguration、SpringBootWebSecurityConfiguration、SecurityFilterAutoConfiguration
 * 1. security的所有配置在 SecurityProperties：以Spring.security开头
 * 2. 默认SecurityFilterChain组件:
 *    - 所有请求都需要认证（登录）
 *    - 开启表单登录：SpringSecurity提供一个默认登录页，未经登录的所有请求都需要登录
 *    - httpBatis 方式登录
 * 3、@EnableSecurity 生效
 * - WebSecurityConfiguration: web安全配置
 * - HttpSecurityConfiguration: http安全配置
 * - @EnableGlobalAuthentication: 开启全局安全认证
 *	   AuthenticationConfiguration: 认证配置
 * @author admin
 */
@SpringBootApplication
public class SecurityApplication {

	public static void main(String[] args) {
		SpringApplication.run(SecurityApplication.class, args);
	}

}
